﻿using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Globalization;

namespace Eswat
{
	/// <summary>
	/// Represents the status of a test.
	/// </summary>
	public class TestStatus
	{
		/// <summary>
		/// Represents a test with an unexpected error.
		/// </summary>
		public static TestStatus Error = new TestStatus("Error");

		/// <summary>
		/// Represents a successful test.
		/// </summary>
		public static TestStatus Succeeded = new TestStatus("Succeeded");

		/// <summary>
		/// Represents a failed test.
		/// </summary>
		public static TestStatus Failed = new TestStatus("Failed");

		/// <summary>
		/// Initializes a new instance of the <see cref="TestStatus"/> class.
		/// </summary>
		/// <param name="name">The name.</param>
		public TestStatus(string name)
		{
			this.Name = name;
		}

		/// <summary>
		/// Gets the name.
		/// </summary>
		public string Name { get; private set; }

		/// <summary>
		/// Returns a <see cref="System.String"/> that represents this instance.
		/// </summary>
		/// <returns>
		/// A <see cref="System.String"/> that represents this instance.
		/// </returns>
		public override string ToString()
		{
			return this.Name;
		}
	}
}
